package com.lou.springboot.dao;

import com.lou.springboot.entity.BlogTagCount;
import com.lou.springboot.entity.Tag;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by Guaguaerhao on 2020/7/12 11:50
 */
@Mapper
public interface BlogTagDao {
    int insertTag(String tagName);
    List<Tag> selectTagList(Map map);
    int getTotalTags();
    Tag selectByPrimaryKey(Integer tagId);
    Tag selectByTagName(String tagName);
    int deleteByPrimaryKey(Integer tagId);
    int deleteBatch(Integer[] ids);
    int updateTag(Integer tagId,String tagName);
    int batchInsertBlogTag(List<Tag> tags);
    List<BlogTagCount> getTagCount();
}
